package com.itxckf.service.impl;

import com.itxckf.mapper.UserMapper;
import com.itxckf.pojo.User;
import com.itxckf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> getUser(String name,String sts) {
        return userMapper.getUser(name,sts);
    }

    @Override
    public void deleteUser(Short id) {
        userMapper.deleteUser(id);
    }

    @Override
    public void editUser(User user) {
        userMapper.editUser(user);
    }

    @Override
    public void editUserBalance(Short id,String name) {
        userMapper.editUserBalance(id,name);
    }

    @Override
    public List<User> getUserInfo(Short id) {
        return userMapper.getUserInfo(id);
    }
}
